package com.tanhua.server.service;

import com.tanhua.commons.utils.Constants;
import com.tanhua.dubbo.api.UserInfoApi;
import com.tanhua.model.vo.HuanXinUserVo;
import com.tanhua.server.interceptor.UserHolder;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

/**
 * @auther : 白月尘
 * @date : 17:03  2021/10/23
 */
@Service
public class HuanXinService {
    @DubboReference
    private UserInfoApi userInfoApi;

    public HuanXinUserVo findUser() {
        HuanXinUserVo vo=new HuanXinUserVo();
        vo.setUsername("hx"+UserHolder.getUserId());
        vo.setPassword(Constants.INIT_PASSWORD);
        return vo;
    }
}
